{% extends 'management.html' %}
{% load i18n %}
	


{% block content %}
  <script type="text/javascript" src="/res/js/tiny_mce/tiny_mce.js"></script>
  <script type="text/javascript">
		initTiny();
  </script>
  
	<div id="detail" >
		<form action='/admin/add_db/' method='post' name='addNote'>
			<p>{% trans "Title" %}:
				<input name='title' type='text' size="50"  />
			</p>
			<p>{% trans "Public" %}:
				<input name='isPublic' type='checkbox' value="True"/>
			</p>
			
			<p>{% trans "Category" %}:
				<select name="category">
					{% for category in categories%}
						<option>{{category.name}}</option>
					{% endfor %}
				</select>
				
			</p>
			<p>{% trans "Location" %}:
				<input name='writeLocation' type='text' size="50"  />
			</p>
			<p>{% trans "Tag" %}:
				<input name='tags' type='text' size="50"  />
			</p>
			<p>{% trans "Reference" %}:
				<input name='reference' type='text' size="50"  />
			</p>
			
			
			<p>{% trans "Content" %}:</p>
				
			<p>	<textarea id="content" class="mceEditor" name="content" rows="20" cols="45" ></textarea>
			</p>	
			<p class="subbotton"><input type='submit' value='{% trans "OK" %}' />
				<input type='reset' value='{% trans "Cancel" %}' /> 
			</p>
		</form>
	</div>

		
{% endblock content %}

